package com.exam;

import java.time.LocalDate;

public class User {
    private Long id;
    private String name;
    private String gender;
    User(Long id, String name, String gender, LocalDate birthday){
        this.id = id;
        this.birthday = birthday;
        this.gender = gender;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    private LocalDate birthday;
    public String toString(){
        String f = "id为->" + id + "性别为->" + gender + "生日是：" + birthday;
        return f;
    }

}
